package com.synjones.handsetS8.ild.adapter.viewholder;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.synjones.handsetS8.R;;
import com.synjones.handsetS8.ild.base.BaseRecyclerHolder;
import com.synjones.handsetS8.ild.pages.select.IdNameItem;

/**
 * @author Chris Chan
 * Create on: 2021/7/19}16:45
 * For: 字符类型选择列表项
 * Explain:
 */
public class SelectItemRvViewHolder extends BaseRecyclerHolder<IdNameItem> {
    private TextView tvItem;

    public SelectItemRvViewHolder(Context context, View itemView) {
        super(context, itemView);
        tvItem = itemView.findViewById(R.id.tv_item);
    }

    @Override
    public void refreshView(IdNameItem item) {
        tvItem.setText(item.getName());
    }
}
